import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function listInoutstock(query) {
  return request({
    url: '/system/inoutstock/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getInoutstock(advInoutstock) {
  return request({
    url: '/system/inoutstock/' + advInoutstock,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addInoutstock(data) {
  return request({
    url: '/system/inoutstock',
    method: 'post',
    data: data
  })
}

// 修改【请填写功能名称】
export function updateInoutstock(data) {
  return request({
    url: '/system/inoutstock',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delInoutstock(advInoutstock) {
  return request({
    url: '/system/inoutstock/' + advInoutstock,
    method: 'delete'
  })
}

// 修改设备重启时间
export function updateByRestart(data) {
  return request({
    url: '/system/inoutstock/updateByRestart',
    method: 'post',
    data: data
  })
}

export function batchUpdateReboottime(data) {
  return request({
    url: '/system/inoutstock/batchUpdateReboottime',
    method: 'post',
    data: data
  })
}

export function batchUpdateUpgrade(data) {
  return request({
    url: '/system/inoutstock/batchUpdateUpgrade',
    method: 'post',
    data: data
  })
}